package com.skycong.hello77.complexforms.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Kiki on 2018/6/8.
 */

public class DataComparisonItem {
    public double compareValue;//	对比数据项值	number	31063.76
    public boolean endNode;//	是否为终结点	boolean
    public int id;//	数据项Id	number	101
    public double increase;//	涨幅	number
    public String name;//	数据项名称	string	酒类
    public boolean percent;//	涨幅是否为百分数	boolean
    public double value;//	数据值	number
    public DataComparisonItem( String name){
        this.name = name;
        this.compareValue = 102020.00;
        this.endNode = true;
        this.id = 101;
        this.increase = 0.00;
        this.percent = true;
        this.value = 969989699699.00;
    }

    public static List<DataComparisonItem> getDate(){
        List<DataComparisonItem> dataItem = new ArrayList<>();
        for(int i =0;i<9;i++){
          dataItem.add(new DataComparisonItem("神呢试试"+i));
        }
        return dataItem;

    }

    @Override
    public String toString() {
        return "DataComparisonItem{" +
                "compareValue=" + compareValue +
                ", endNode=" + endNode +
                ", id=" + id +
                ", increase=" + increase +
                ", name='" + name + '\'' +
                ", percent=" + percent +
                ", value=" + value +
                '}';
    }
}
